package org.lwd.datalink.service.impl;

import org.lwd.datalink.domain.task.TaskDelayTimeInfo;
import org.lwd.datalink.mapper.TaskDelayTimeMapper;
import org.lwd.datalink.service.TaskDelayTimeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 同步任务数据延迟
 *
 * @Author: weidong.lin
 * @Date: create in 2024/4/9 13:58
 */
@Service
public class TaskDelayTimeServiceImpl implements TaskDelayTimeService {

    @Resource
    private TaskDelayTimeMapper taskDelayTimeMapper;

    @Override
    public Boolean insert(TaskDelayTimeInfo alarmInfo) {
        Integer num = taskDelayTimeMapper.insert(alarmInfo);
        return num > 0;
    }
}
